<?php
class defaults {
	public $view;
	function __construct() {
		$this->view = new Views ( );
	}
	function index() {
		$views = $this->header();
		$views .= $this->content();
		$views .=$this->footer();
		return $views;
	}
	function header() {
		$this->view->tpl_set ( "data", "a" );
		$this->view->render_template ( "public/template/", "header" );
	}
	
	function content() {
		$this->view->render_template ( "public/template/", "content" );
	}
	
	function footer() {
		$this->view->render_template ( "public/template/", "footer" );
	}
}
?>